package com.xiaobug.demo.navigation;

import android.os.Bundle;

import com.xiaobug.baselibrary.base.BaseFragment;
import com.xiaobug.demo.R;
import com.xiaobug.demo.databinding.NavigationFragmentTestBinding;

/**
 * Created by ljb on 2018/5/9.
 */

public class NavigationFragment extends BaseFragment<NavigationFragmentTestBinding> {

    public static NavigationFragment newInstance(String info){
        Bundle args = new Bundle();
        NavigationFragment fragment = new NavigationFragment();
        args.putString("info", info);
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    protected int getRootID() {
        return R.layout.navigation_fragment_test;
    }

    @Override
    protected void initData(Bundle savedInstanceState, NavigationFragmentTestBinding binding) {
        binding.tv.setText(getArguments().getString("info"));
    }
}
